import { Component, Input, Output, EventEmitter, OnInit } from '@angular/core';


@Component({
    selector: 'alarm-item',
    templateUrl: 'alarm-item.html',
    styleUrls: ['alarm-item.scss']
})

export class AlarmItemComponent implements OnInit {
    @Input() alarmDatas;
    @Input() permission;
    @Input() border;
    @Output() showPopup: EventEmitter<any> = new EventEmitter();
    @Output() watchVideo: EventEmitter<any> = new EventEmitter();
    ngOnInit() {
        console.log(this.alarmDatas);
    }

    show(alarmData) {
        this.showPopup.emit(alarmData);
    }

    toVideo(alarmData) {
        this.watchVideo.emit(alarmData);
    }

}

